home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 4
/
Mac Giga-ROM 4.0 - 1993.toast
/
FILES
/
EDU
/
M-Q
/
Math.cpt
/
Math
/
card_6334.txt
< prev
next >
Wrap
Text File
|
1990-12-18
|
4KB
|
205 lines
-- card: 6334 from stack: in
-- bmap block id: 6652
-- flags: 0000
-- background id: 2700
-- name:
----- HyperTalk script -----
on opencard
global right, wrong
put 0 into right
put right into field numright
put 0 into wrong
put wrong into field numwrong
click at loc of card field result
end opencard
-- part 1 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=178 top=155 right=185 bottom=221
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 24
-- style flags: 256
-- line height: 32
-- part name: second
-- part 2 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=252 top=122 right=152 bottom=313
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 24
-- style flags: 256
-- line height: 32
-- part name: result
----- HyperTalk script -----
on returnInField
if card field first/card field second > 9 then
click at loc of card field step1
end if
end returnInField
on enterInfield
global right,wrong
put "" into card field step1
put "" into card field step2
if card field result <> (card field first)/(card field second) then
put "Try again" into card field feedback
talk card field feedback ,150,150
put "" into card field result
put wrong +1 into wrong
put wrong into field numwrong
end if
if card field result = (card field first)/(card field second) then
put right +1 into right
put right into field numright
put "Right" into card field feedback
talk card field feedback,150,150
put "" into card field result
put round of random of 9 into card field second
put (round of random of 99)*card field second into card field first
talk card field first,150,150
talk "divided by",150,150
talk card field second,150,150
end if
put "" into card field feedback
click at the loc of card field result
talk "when the answer is right, press enter",150,150
end enterInfield
-- part 4 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=235 top=156 right=186 bottom=292
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 24
-- style flags: 256
-- line height: 32
-- part name: first
-- part 5 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=340 top=170 right=195 bottom=467
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 18
-- style flags: 256
-- line height: 24
-- part name: feedback
-- part 11 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=234 top=191 right=219 bottom=277
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 24
-- style flags: 256
-- line height: 32
-- part name: step1
----- HyperTalk script -----
on returnInfield
click at loc of card field step2
end returnInfield
-- part 12 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=254 top=231 right=262 bottom=298
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 24
-- style flags: 256
-- line height: 32
-- part name: step2
----- HyperTalk script -----
on returnInfield
click at loc of card field result
end returnInfield
-- part 14 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=330 top=120 right=155 bottom=469
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part contents for background part 6
----- text -----
test
-- part contents for card part 1
----- text -----
6
-- part contents for card part 4
----- text -----
294
-- part contents for card part 9
----- text -----
0
-- part contents for card part 10
----- text -----
0
-- part contents for background part 22
----- text -----
0
-- part contents for background part 23
----- text -----
0
-- part contents for card part 14
----- text -----
Type enter when the answer is right